﻿@model PagedList<kxcxw.Data.Entities.PublichInformation>
@using kxcxw.Data.Common
@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/Admin/Views/Shared/_InfoLayout.cshtml";
}
<script src="../../Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.unobtrusive-ajax.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $("#searchbtn").click(function () { 
            var title=$("#txtTitle").val();
            var PromotionType=$("#PromotionTypeList").val();
            var AreaType=$("#AreaType").val();
            var SourceList=$("#SourceList").val();
            var href="@(CommonRepositories.UrlReplace(Request.Url.ToString(), "searchString", "searchkeyword"))";
            href=href.replace("searchkeyword","title:"+title+";pt:"+PromotionType+";at:"+AreaType+";sl:"+SourceList);
            window.location.href=href;
        });
    });
</script>
<h2>
    @Html.ActionLink("信息管理", "Index") &raquo; @Html.ActionLink("信息列表", "Index", null, new { @class = "active" })</h2>
<div id="main">
    <div id="searchBar">
        @using (Html.BeginForm())
        {
            <fieldset>
                标题：<input type="text" id="txtTitle" class="text-medium" value="@ViewBag.searchTitle" />
                @Html.DropDownList("PromotionTypeList", "--促销类别--")
                @Html.DropDownList("AreaType", "--推荐区域--")
                @Html.DropDownList("SourceList", "--信息来源--")
                <input id="searchbtn" type="button" value="查询" />
            </fieldset>
        }
    </div>
    @{Html.RenderPartial("List", Model); }
</div>
